import request from '@/utils/request'

// 查询文章收藏管理列表
export function listArticlecollect(query) {
  return request({
    url: '/articlecollect/articlecollect/list',
    method: 'get',
    params: query
  })
}

// 查询文章收藏管理详细
export function getArticlecollect(id) {
  return request({
    url: '/articlecollect/articlecollect/' + id,
    method: 'get'
  })
}

// 新增文章收藏管理
export function addArticlecollect(data) {
  return request({
    url: '/articlecollect/articlecollect',
    method: 'post',
    data: data
  })
}

// 修改文章收藏管理
export function updateArticlecollect(data) {
  return request({
    url: '/articlecollect/articlecollect',
    method: 'put',
    data: data
  })
}

// 删除文章收藏管理
export function delArticlecollect(id) {
  return request({
    url: '/articlecollect/articlecollect/' + id,
    method: 'delete'
  })
}

export function listPatient(query) {
  return request({
    url: '/doctor/patient/list',
    method: 'get',
    params: query
  })
}

export function listArticle(query) {
  return request({
    url: '/knowledge/article/list',
    method: 'get',
    params: query
  })
}
